package com.ychs.dpmms.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * copyright(c)2021 YYB.ALL rights Reserved
 * <p>
 * 描述:
 *
 * @author 原玉波
 * @version 1.0
 * @date 2021/8/13
 */
@Data
public class Branch {

    /**
     * id
     */
    private int id;

    /**
     *二级基层党组织
     */
    private SecondOrganization secondOrganization;

    /**
     * 党支部名称
     */
    @NotNull(message = "党支部名称不能为空")
    @Size(min = 4,max=20,message = "党支部名称最小5位，最大20位")
    private String name;

}
